package com.bdqn.mapper;

import com.bdqn.pojo.HisCareHistory;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

public interface HisCareHistoryMapper {
    @Insert("INSERT INTO `his_care_history` VALUES (#{chId}, #{userId}, #{userName}, #{patientId}, #{patientName}, #{deptId}, #{deptName}, #{receiveType}, #{isContagious}, #{careDate}, #{caseDate}, #{regId}, #{caseTitle}, #{caseResult}, #{doctorTips}, #{remark})")
    int addHisCareHistory(HisCareHistory hisCareHistory);
    @Select("SELECT ch_id FROM his_care_history WHERE reg_id = #{id}")
    String selectChId(String id);
}
